home *** CD-ROM | disk | FTP | other *** search
- global gMIAW_VideoSprite, gWindowName, gVideoName, gFrameStep
-
- on exitFrame me
- if gFrameStep < 6 then
- if gFrameStep = 5 then
- gMIAW_VideoSprite.play()
- end if
- gFrameStep = gFrameStep + 1
- end if
- if gMIAW_VideoSprite.movieTime >= gMIAW_VideoSprite.duration then
- cleanUpWindow()
- end if
- go(the frame)
- end
-
- on beginSprite me
- global gMaxVolLevel
- gFrameStep = 0
- tmpMember = member(36)
- tmpMember.name = gVideoName
- tmpMember.fileName = the moviePath & gVideoName & ".mpg"
- set the keyDownScript to "theKeyDown"
- if (the environment).runMode = "Projector" then
- the alertHook = script("Alert")
- set the exitLock to 1
- end if
- gMIAW_VideoSprite = sprite(11)
- gMIAW_VideoSprite.puppet = 1
- gMIAW_VideoSprite.member = tmpMember
- gMIAW_StageWidth = 640
- gMIAW_StageHeight = 480
- gMIAW_StageCenter = point(gMIAW_StageWidth / 2, gMIAW_StageHeight / 2)
- gMIAW_VideoSprite.width = 640
- gMIAW_VideoSprite.height = 480
- gMIAW_VideoSprite.loc = point(0, 0)
- gMIAW_VideoSprite.volume = gMaxVolLevel
- end
-